import request from '@/utils/request'

// 获取数据table
export const getDataApi = (data: object) => {
    return request({
        url: '/meta/tInfoSjjZd/list',
        method: 'post',
        data
    })
};

//数据源修改、编辑提交表单
export const submitFormApi = (data: object) => {
    return request({
        url: '/meta/tInfoSjjZd/edit',
        method: 'post',
        data
    })
};

//删除
export const remove = (ids: string) => {
    const data = { ids }
    return request({
        url: '/meta/tInfoSjjZd/remove',
        method: 'post',
        data
    })
};

//树形图
export const getTreeDataApi = () => {
    return request({
        url: '/meta/tInfoSjjSjdx/treeData',
        method: 'get',
    })
};